import { post, get, del, put } from "./service"

export const login = data => {
    return post({
        url: '/login',
        data
    })
}

export const register = data => {
    return post({
        url: '/register',
        data
    })
}
export const resetPassword = data => {
    return post({
        url: '/resetpassword',
        data
    })
}

export const sendCaptcha = (email, use) => {
    return post({
        url: '/register/captcha',
        data: {
            email: email,
            use: use
        }
    })
}
